package com.jiyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.model.Race;
import com.jiyun.model.Train;
import org.apache.ibatis.annotations.Select;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/9 16 13
 * */
public interface TrainMapper extends BaseMapper<Train> {
    @Select("select count(q.id) from train t , train_quiz t1,quiz q where t.id=t1.tid and t1.qid=q.id and t.id=#{id}")
    Integer findQuiz(Integer id);
}
